package com.czw.ddm.register

import cn.jiguang.jmlinksdk.api.JMLinkAPI
import com.didi.drouter.annotation.Service
import com.mtzqc.common.app.App
import com.mtzqc.common.init.InitService


@Service(
    function = [InitService::class],
    priority = 40
)
class LinkRegister : JGRegister(), InitService {

    override val depName: String
        get() = "JLink"

    override fun initOnAgree(): Boolean {
        JMLinkAPI.getInstance().apply {
            setDebugMode(App.isDev() || App.isDebug())
            init(App.app())
        }
        return true
    }
}